package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@Table(name = "order_comment")
public class Comment implements Serializable {

	private static final long serialVersionUID = -3688674722725202332L;
	@Id
	@Column(name = "order_no_nvarchar", columnDefinition = "varchar(255) comment '订单号'")
	private String orderNo;
	@Column(name = "pid_bigint", columnDefinition = "bigint(20)")
	private Long pid;
	@Column(name = "dc_id_bigint", columnDefinition = "bigint(20)")
	private Long dcId;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "h_score_decimal", columnDefinition = "decimal(10,2) comment '5分制'")
	private BigDecimal hScore;
	@Column(name = "h_remark_nvarchar", columnDefinition = "varchar(255)")
	private String hRemark;	
	@Column(name = "d_score_decimal", columnDefinition = "decimal(10,2) comment '5分制'")
	private BigDecimal score;
	@Column(name = "d_remark_nvarchar", columnDefinition = "varchar(255)")
	private String dRemark;
	@Column(name = "s_score_decimal", columnDefinition = "decimal(10,2) comment '5分制'")
	private BigDecimal sScore;
	@Column(name = "s_remark_nvarchar", columnDefinition = "varchar(255)")
	private String sRemark;
	@Column(name = "time_out_datetime", columnDefinition = "datetime(3)")
	private Date timeOut;
	@Column(name = "is_comment_bit", columnDefinition = "tinyint(1)")
	private Boolean isComment;
	@Column(name = "re_nvarchar", columnDefinition = "varchar(255)")
	private String re;
	@Column(name = "re_time_datetime", columnDefinition = "datetime(3)")
	private Date reTime;
}
